package com.meituan.catering.management.order.remote.model.converter;

import com.meituan.catering.management.order.remote.model.response.ShopDetailRemoteResponse;
import com.meituan.catering.management.shop.api.thrift.model.dto.ShopDetailThriftDTO;
import com.meituan.catering.management.shop.api.thrift.model.response.ShopDetailThriftResponse;
import springfox.documentation.spring.web.json.Json;

/**
 * @author mac
 */
public class ShopDetailRemoteResponseConverter {
    public static ShopDetailRemoteResponse toShopDetailRemoteResponse(ShopDetailThriftDTO shopDetailThriftDTO) {
        ShopDetailRemoteResponse shopDetailRemoteResponse = new ShopDetailRemoteResponse();
        shopDetailRemoteResponse.setId(shopDetailThriftDTO.getId());
        shopDetailRemoteResponse.setTenantId(shopDetailThriftDTO.getTenantId());
        shopDetailRemoteResponse.setAuditing(shopDetailThriftDTO.getAuditing());
        shopDetailRemoteResponse.setBusinessNo(shopDetailThriftDTO.getBusinessNo());
        shopDetailRemoteResponse.setName(shopDetailThriftDTO.getName());
        shopDetailRemoteResponse.setBusinessType(shopDetailThriftDTO.getBusinessType());
        shopDetailRemoteResponse.setContact(shopDetailThriftDTO.getContact());
        shopDetailRemoteResponse.setManagementType(shopDetailThriftDTO.getManagementType());
        shopDetailRemoteResponse.setOpeningHours(shopDetailThriftDTO.getOpeningHours());
        shopDetailRemoteResponse.setBusinessArea(shopDetailThriftDTO.getBusinessArea());
        shopDetailRemoteResponse.setComment(shopDetailThriftDTO.getComment());
        shopDetailRemoteResponse.setEnabled(shopDetailThriftDTO.getEnabled());
        shopDetailRemoteResponse.setVersion(shopDetailThriftDTO.getVersion());
        return shopDetailRemoteResponse;
    }
}
